#include "mainwindow.h"

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
    addAct = new QAction("Add", this);
    exitAct = new QAction("Exit", this);

    fileMenu = menuBar()->addMenu(tr("&File"));
    fileMenu->addAction(addAct);
    fileMenu->addSeparator();
    fileMenu->addAction(exitAct);

    widget = new Widget(this);

    setMinimumSize(800, 500);
    setWindowTitle("3P1K MUZ1K PL4Y3R 3000");

    QObject::connect(addAct, SIGNAL(triggered()), widget->musicTable, SLOT(add()));

    //Enable plugins so we can load youtube videos
    QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);
    QWebSettings::globalSettings()->setAttribute(QWebSettings::AutoLoadImages, true);

    setCentralWidget(widget);
}

MainWindow::~MainWindow()
{
    
}


